'use strict';

function spilt_to_zero(number, interval) {
  
    let result=[];
    result.push(number);
    while(number>0){
        number=number-interval;
        number=parseFloat(number.toFixed(1));
        result.push(number);
    }
    return result;
    
}

module.exports = spilt_to_zero;
